// +---------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +---------------------------------------------------------------------
// | Copyright (c) 2016~2022 https://www.crmeb.com All rights reserved.
// +---------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +---------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +---------------------------------------------------------------------

import BasicLayout from '@/components/main';

const pre = 'archives_';

export default {
  path: '/admin/archives',
  name: 'archives',
  header: 'archives',
  redirect: {
    name: `${pre}archives`,
  },
  component: BasicLayout,
  children: [
	{
	  path: 'archives',
	  name: `${pre}archives`,
	  meta: {
	    auth: ['admin-archives'],
	    title: '档案列表',
	  },
	  component: () => import('@/pages/archives/index'),
	},
	{
	  path: 'detail/:id?',
	  name: `${pre}detail`,
	  meta: {
	    auth: ['admin-archives-detail'],
	    title: '档案详情',
	  },
	  component: () => import('@/pages/archives/detail/index'),
	},
	{
	  path: 'records/:id/:name?',
	  name: `${pre}records`,
	  meta: {
	    auth: ['admin-archives-records'],
	    title: '护理记录',
	  },
	  component: () => import('@/pages/archives/records/index'),
	}
  ],
};
